doctype html
//
  |
  |   ____   ___   ___  
  |  | ___| / _ \ / _ \ 
  |  |___ \| | | | | | |
  |   ___) | |_| | |_| |
  |  |____/ \___/ \___/
  |
  | This is the default "500: Server Error" page.
  |
  | User agents that don't "Accept" HTML will see a JSON version instead.
  | You can customize the control logic for your needs in `config/500.js`
  |
  | Sails responds to a request with a "500: Server Error" state when 
  | either `next(err)` is called in a controller or policy, or your app 
  | throws an error.

html
  head
    title Unexpected Error Occurred
    link(href='http://sailsjs.org/styles/fonts.css', rel='stylesheet')
    style.
      /* Styles included inline since you'll probably be deleting this page anyway */
      html,body{text-align:left;font-size:1em}html,body,img,form,textarea,input,fieldset,div,p,div,ul,li,ol,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code{margin:0;padding:0}ul,li{list-style:none}img{display:block}a img{border:0}a{text-decoration:none;font-weight:normal;font-family:inherit}*:active,*:focus{outline:0;-moz-outline-style:none}.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.errorpage .ocean{background:url('http://sailsjs.com/images/waves.png') #0c8da0 no-repeat center 0;height:315px}.errorpage .ocean img{margin-right:auto;margin-left:auto}.errorpage .waves{display:block;padding-top:25px;margin-right:auto;margin-left:auto}.errorpage .main{display:block;margin-top:90px}.errorpage .logo{width:150px;margin-top:3.5em;margin-left:auto;margin-right:auto}.errorpage .fishy{display:block;padding-top:27px}.errorpage .help, .errorpage .error{padding-top:2em}.errorpage h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:bold;font-size:1.7em;color:#001c20;text-align:center}.errorpage h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.errorpage p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.errorpage a{color:#118798}.errorpage a:hover{color:#b1eef7}
        pre {display: block; width: 75%; margin-left: auto; margin-right: auto;}
        code {display:block;width:100%;padding:0;margin:0;overflow:scroll;}
        .fivehundred .ocean{background-color:#118798;height:275px;position:relative}.fivehundred .ocean .waves{display:block;position:absolute;bottom:-1px;left:10%;width:80%;max-width:700px;margin-right:auto;margin-left:auto;z-index:2}.fivehundred .ocean .whale{display:block;padding-top:27px;position:absolute;z-index:5;bottom:-50px;width:50%;max-width:550px;margin-left:7%}@media screen and (min-width:800px){.fivehundred .ocean .whale{bottom:-70px;left:18%}.fivehundred .ocean .waves{left:20%}}.fivehundred .container{width:70%;margin:auto}.fivehundred .main{display:block;margin-top:70px;width:90%;max-width:1100px;margin:0 auto;padding-top:80px}.fivehundred .main a:hover{color:#001c20}.fivehundred .logo{width:150px;margin:0 auto 10px}.fivehundred .error{ margin:4em auto 35px}.fivehundred h1{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:700;font-size:1.7em;color:#001c20;text-align:center}.fivehundred h2{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-weight:300;font-size:1.5em;color:#001c20;text-align:center}.fivehundred p{font-family:"Open Sans","Myriad Pro",Arial,sans-serif;font-size:1.25em;color:#001c20;text-align:center}.fivehundred a{color:#118798}.fivehundred a:hover{color:#b1eef7}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;background-color:#e7ecef;outline:1px solid #ced7d6;padding:3px 3%}code{font-family:Monaco,monospace;font-weight:300;font-size:.8em}
  body
    .fivehundred
      .ocean
        .container
          img.waves(title='', alt='', src='')
          img.whale(title='', alt='', src='')
      .main
        h1 Internal Server Error
        h2 Something isn't right here.
        if (typeof errors !== 'undefined')
          pre.error
            code
              - _.each(errors, function (error) {
                = error
              - });
        else
          p.error
            | A team of highly trained sea bass is working on this as we speak.
            br
            | If the problem persists, please 
            a(href="mailto://you@your-domain.com") contact the system administrator
            |  and inform them of the time that the error occured, and anything you might have done that may have caused the error.

      .logo
        a(href="http://sailsjs.org")
          img(width='150', height='70', title='', alt='', src='')
